<?php if (!defined('BASEPATH'))exit('No direct script access allowed');
/**
 * 贷款攻略
 */
class Lend extends MY_Controller {

    function __construct() {
        parent::__construct();
    }
    //详情页
    function raiders_detail() {
        $lend_id = isset($_REQUEST['lend_id']) ? trim($_REQUEST['lend_id']) : 0;
        if(!$lend_id){
            $this->display('deleted/index.html');exit;
        }
        $item =$this->db->query("select r.id,r.lend_id,r.title,r.content,l.h5_reg_url from tan_lend_raiders r left join tan_lend_list l on l.id = r.lend_id where r.lend_id = ".$lend_id." and r.status = 1 order by r.id desc limit 1")->row_array();
        if(!$item){
            $this->display('deleted/index.html');exit;
        }
        $this->assign("item", $item);
        $this->display('lend/raiders_detail.html');
    }
}
